package com.bys.system.service.impl;

import com.bys.system.model.SysRoleModel;
import com.bys.system.model.SysUserRoleModel;
import com.bys.system.mapper.SysUserRoleMapper;
import com.bys.system.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * PackageName:  com.bys.system.service.impl
 * ClassName:    SysUserRoleServiceImpl
 * Description:  用户角色 服务实现类
 * Author:       bys
 * Date:         2023-03-31
 **/
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRoleModel> implements ISysUserRoleService {
    @Resource
    private SysUserRoleMapper sysUserRoleMapper;

    @Override
    public List<SysRoleModel> getRole(Long id) {
        return sysUserRoleMapper.selectRole(id);
    }
}
